﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;

namespace ConsoleApp1
{
    class Program
    {
        
       
        static void Main(string[] args)
        {

            //String.Join(); 将
            string[] abc = new string[]{"gg","24" };
            string message = String.Join("-", abc);//数组中的元素连接起来

            int[] xxx = new int[] { 10, 5, 12 };
            string nn = String.Join(".",xxx);
            string mm = nn;
            
            Console.WriteLine(message);
            Console.WriteLine(nn);
            for (int i = 0; i < 20; i++)
            {
                Console.WriteLine("当前时间" + DateTime.Now);

                Thread.Sleep(1000);
               
            }

            ThreadStart aa = new ThreadStart(Pp);


            Thread t = new Thread(aa);

            t.Start();
            

            Console.ReadKey();
        }
        
       public static void Pp()
        {
            Console.WriteLine("正要下班啦，，，"+DateTime.Now);
        }
       
    }
}
